package com.aaa.test2;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年10月25日10:08
 */
public class Test {
    public static void main(String[] args) {
        Info<Integer> info1 = new Info<>(2);
        info1.show();

        Info<Number> info2 = new Info<>(56);
        fun1(info2);

        Info<String> info3 = new Info<>("lala");
        fun(info3);


    }
    public static void fun1(Info<? extends Number>info){
        info.show();
    }
    public static void fun(Info<? super String> info){
        info.show();
    }
}
